﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace DScheme
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
            Application.Run(new Form1());
        }

        static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            if (args.Name.Contains("Gif.Components"))
            {
                return System.Reflection.Assembly.Load(Properties.Resources.Gif_Components);
            }
            return null;
        }
    }
}
